//
//  HTTPManager.m
//  WY
//
//  Created by lanou3g on 16/5/10.
//  Copyright © 2016年 pcc. All rights reserved.
//

#import "HTTPManager.h"

@implementation HTTPManager

+ (instancetype)shareManager {
    static dispatch_once_t onceToken;
    static HTTPManager *manager = nil;
    dispatch_once(&onceToken, ^{
        manager = [[self alloc]initWithBaseURL:BaseURL sessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
        manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", nil];
    });
    return manager;
}


@end
